package com.idemon.springbootmongodb;

import org.springframework.data.annotation.Id;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
public class Userinfo implements Serializable {
    @Id
    private String id;
    private String name;
    private int age;

    @Override
    public String toString() {
        return String.format("Userinfo[id=%s, Name='%s', Age='%d']", id, name, age);
    }
}
